package com.xbongbong.saas.model;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.paas.toolbox.wrap.IModel;
import com.xbongbong.saas.domain.entity.ClueConvertRuleEntity;

import java.util.List;

public interface ClueConvertRuleModel extends IModel<ClueConvertRuleEntity> {

    List<ClueConvertRuleEntity> getByCorpidAndFormId(String corpid, Long formId);

    void save(ClueConvertRuleEntity clueConvertRuleEntity) throws XbbException;

    ClueConvertRuleEntity getByCustomerFormId(String corpid, Long formId,Long customerFormId);
}
